package com.whlilong.jxc.action;

import org.eclipse.ui.IWorkbenchWindow;
import com.whlilong.jxc.service.editor.IEditorService;

public class CloseEditorAction extends AbstractAction {
	
	private String id = "com.whlilong.jxc.commands.editorclose";
	
	public CloseEditorAction(IWorkbenchWindow window) {
		super(window);
		setId("closeEditor");
		setActionDefinitionId(id);
		
	}

	@Override
	void doOperator(IEditorService ieditorService) {
		ieditorService.close();
	}



}
